<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			// 日期时间对象
			var d1 = new Date(); // 得到当前时间
			document.write(d1);
			document.write("<br />");
			
			document.write(d1.getFullYear()+"年");
			document.write((d1.getMonth()+1)+"月");
			document.write(d1.getDate()+"月");
			document.write("&nbsp;");			
			document.write(d1.getHours()+":");
			document.write(d1.getMinutes()+":");
			document.write(d1.getSeconds());
			document.write("&nbsp;");
			var weeks=["日","一","二","三","四","五","六"];
			document.write("星期"+weeks[d1.getDay()]);
			
			
		</script>
	</body>
</html>